package com.bbva.factory;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class JPAFactory {
	public static EntityManager getEntityManager(String unit) {
		EntityManagerFactory mf = Persistence.createEntityManagerFactory(unit);
		return mf.createEntityManager();
	}
}
